/**  
 * Project Name:mmc_svn  
 * File Name:XMlRead.java  
 * Package Name:com.mes.basicdata.service.hbydMPM.impl  
 * Date:May 2, 20178:28:37 PM  
 * Copyright (c) 2017, MM-MES All Rights Reserved.  
*/  
  
package com.mes.integration.hbydMPM.impl;  

import java.io.File;

import org.dom4j.Document;
import org.dom4j.io.SAXReader;


/**  
 * ClassName:XMlRead <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     May 2, 2017 8:28:37 PM <br/>  
 * @author   Administrator  
 * @version    
 * @since    JDK 1.6  
 * @see        
 */
public class XMlRead {
	public static void main(String[] args) {
		try {

			SAXReader sReader = new SAXReader();
			Document doc = sReader.read(new File("itemData.xml"));
			String documentString = doc.asXML();
			System.out.println(documentString);
		} catch (Exception e) {
			
			e.printStackTrace();
		}
		
	}

}
  
